
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">

    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- Sidebar Menu -->
        <% const data = [{
            title:"首页",
            icon:"fa-home",
            path:"/",
            power: 0
        },{
            title:"商品信息管理",
            icon:"fa-map",
            path:"/goods",
            power: 0
        },{
            title:"轮播图管理",
            icon:"fa-image",
            path:"/banner",
            power: 1
        },{
            title:"用户管理",
            icon:"fa-user",
            path:"/user",
            power: 1
        },{
            title:"订单管理",
            icon:"fa-moon-o",
            path:"/order",
            power: 1
        },{
            title:"购物车管理",
            icon:"fa-link",
            path:"/cart",
            power: 1
        }];
        %>
        <ul class="sidebar-menu" data-widget="tree">
            <% for(let i=0;i<data.length;i++){ %>
                <% if(power >= data[i].power){ %>
                    <li class="<%= index===i ? 'active' : '' %>"><a href="<%= data[i].path %>"><i class="fa <%= data[i].icon %>"></i> <span><%= data[i].title %></span></a></li>
                <% } %>
            <% } %>
        </ul>
        <!-- /.sidebar-menu -->
    </section>
<!-- /.sidebar -->
</aside>